package tv.drplay.course.hook

import android.app.Activity
import com.baidu.mobstat.StatService
import top.kpromise.ibase.lifecycle.ActivityLifeCycleCall

class BaiduAnalytics(nextLifeCycle: ActivityLifeCycleCall? = null) : ActivityLifeCycleCall(nextLifeCycle) {

    override fun onResume(activity: Activity) {
        super.onResume(activity)
        StatService.onResume(activity)
    }

    override fun onPause(activity: Activity) {
        super.onPause(activity)
        StatService.onPause(activity)
    }
}